package Homework5;

import java.util.*;

public class Homework5_2_TestHousehold {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int year,month,day;
        String brand1,brand2,brand3;
        double capacity;
        int memorySize;
        year = input.nextInt();
        month = input.nextInt();
        day = input.nextInt();
        input.nextLine();
        Calendar calendar = Calendar.getInstance();
        calendar.set(year,month-1,day);
        Date date1 = calendar.getTime();
        Date date2 = calendar.getTime();
        Date date3 = calendar.getTime();
        brand1 = input.nextLine();
        TV tv = new TV(brand1,date1);
        brand2= input.nextLine();
        capacity = input.nextDouble();
        input.nextLine();
        WashingMachine washingMachine
                = new WashingMachine(brand2,date2,capacity);
        brand3 = input.nextLine();
        memorySize = input.nextInt();
        SmartTV smartTV = new SmartTV(brand3,date3,memorySize);
        Household h = tv;
        System.out.println(h);
        h = washingMachine;
        System.out.println(h);
        h = smartTV;
        System.out.println(h);
    }
}
